Determination of virgin formation temperature

ABSTRACT

A method for determining virgin formation temperature of earth formations surrounding a borehole is provided. The time duration of drilling fluid circulation and the time after cessation of drilling fluid circulation at the borehole depth regions of interest are tracked. At a particular borehole depth region of interest, fluid flows from the formations into a device in the borehole, and the temperature of the fluid as a function of time with respect to initiation of fluid flow is measured. The thermal history of formations surrounding the particular borehole depth region is modeled for a cooling phase during drilling fluid circulation, a temperature build-up phase after cessation of drilling fluid circulation, and a formation fluid flow phase after initiation of fluid flow. The model and temperature measurements are used to determine a trend of temperature evolution and the virgin formation temperature by extrapolation from the trend.

BACKGROUND OF INVENTION

[0001] This invention relates to the field of earth formation testing and, more particularly to a method for determining the virgin temperature of formations surrounding an earth borehole.

[0002] The undisturbed (or virgin) formation temperature at depth regions of interest is usually estimated from open hole and cased hole logging tools measurements, and from slick line temperature and pressure gauges. These are actually wellbore fluid measurements. The stabilized temperature from sampling/pump-out measurements from formation testing tools has also been used to obtain formation temperature.

[0003] There is a need for a rigorous technique to obtain actual formation temperature using, for example, measurements from a formation testing tool. Production data has shown that actual fluid temperatures arriving at production facilities are significantly higher than those calculated based on early formation pressure estimations. Accurate temperature prediction has great impact on the effectiveness of the following: flow assurance designs including paraffin and asphaltene deposition, and hydrate formation; production casing and tubing design, including expensive tubing insulation design; and production facility design. In high cost fields, such as deepwater and ultra-deep wells, temperature impacts wellbore construction, and sub-sea and surface production facilities that can be extremely expensive.

[0004] Some representative prior art approaches for temperature determination will next be listed. The approach of S. V. Kashikar and F. C. Arnold, “Determination of Formation Temperature From Flow Tests: A New Solution”, SPE 21707, Production Operations Symposium, Oklahoma City, Oklahoma, April 7-9, 1991, includes determination of formation temperature from flow tests. The approach of L. R. Raymond, “Temperature Distribution in a Circulating Drilling Fluid”, SPE 2320, JPT, March, 1969, includes determination of temperature distribution in a circulating drilling fluid. The approach of M. N. Hashem (2002): “Measuring The In Situ Static Formation Temperature”, Published PCT International Patent Application WO 02/057595 A1, 25 July 2002, includes measuring the temperature of fluid produced by a wireline tool when the formation fluid is substantially uncontaminated. Reference can also be made to U.S. Pat. Nos. 4,575,261 and 5,159,569.

SUMMARY OF INVENTION

[0005] The challenge of the formation temperature measurement is illustrated schematically in FIG. 1, diagrams 1A, 1B, and 1C, where three phases of temperature evolution around a wellbore are shown:

[0006] 1. The formation cooling during drilling and mud circulation (diagram 1A).

[0007] 2. The temperature build-up (during tripping, etc.) after mud circulation has been terminated (diagram 1B).

[0008] 3. The “production” phase, when the temperature of produced fluid in the flowline of a formation testing tool, is measured, as will be described (diagram 1C).

[0009] Usually, due to obvious time constraints, the formation-cooling phase during drilling followed by the temperature build-up after stoppage of circulation is much longer than the measurement phase during “production” (i.e., fluid passing through the tool flow line). For this reason, the measured temperature range may be much smaller than the temperature contrast between the wellbore and the formation induced prior to tool deployment. This also means that there is a risk that the formation temperature could be underestimated if it is determined by measuring the temperature of the produced fluid, as proposed in the above-listed Published PCT International Patent Application WO 02/057595A1.

[0010] An approach hereof involves the modeling of thermal history by solving a forward problem and then processing temperature measurement data to capture the trend of temperature evolution that allows determination of initial formation temperature.

[0011] In accordance with an embodiment of the invention, a method is set forth for determining virgin formation temperature of earth formations surrounding a borehole that is drilled using drilling fluid, including the following steps: keeping track of the time duration of drilling fluid circulation at borehole depth regions of interest; keeping track of the time after cessation of drilling fluid circulation at said borehole depth regions of interest; at a particular borehole depth region of interest, causing flow of fluid from the formations into a device in the borehole, and measuring the temperature of the fluid as a function of time with respect to initiation of the fluid flow; modeling the thermal history of formations surrounding the particular borehole depth region, the modeling including a cooling phase during drilling fluid circulation, a temperature build-up phase after cessation of drilling fluid circulation, and a formation fluid flow phase after initiation of fluid flow; using the model and the temperature measurements, determining a trend of temperature evolution at the particular depth region; and determining the virgin formation temperature by extrapolation from said trend.

[0012] Further features and advantages of the invention will become more readily apparent from the following detailed description when taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF DRAWINGS

[0013]FIG. 1, which includes diagrams labeled FIG. 1A, FIG. 1B and FIG. 1C, shows three phases of temperature evolution around a wellbore.

[0014]FIG. 2 is a diagram of the simulation domain, used in an embodiment of the invention.

[0015]FIG. 3 shows a plot of measured temperature versus simulated dimensionless temperature, with a straight line fitted to the data.

[0016]FIG. 4 is a diagram, partially in block form, of a formation testing wireline device which can be used in practicing an embodiment of the invention.

[0017]FIG. 5, which includes FIGS. 5A and 5B placed one below another, is a flow diagram setting forth a sequence of steps or routine in accordance with an embodiment of the invention.

[0018]FIG. 6 is a flow diagram of the steps represented by the block 550 of FIG. 5.

[0019]FIG. 7 is another plot of measured temperature versus dimensionless temperature for representative data with a straight line fitted to the data, showing how T_(o) and T_(W) are determined.

DETAILED DESCRIPTION

[0020] The present invention involves determination of the formation temperature, T₀, using the temperature data

(T_(I)(t₁), i=1, 2, . . . , N)  (1)

[0021] obtained during fluid production from the formation by measuring fluid temperature in a tool flowline. Here, t_(i) are the discreet times of temperature acquisition.

[0022] The drilling and subsequent operation schedule prior to temperature data acquisition is known and therefore the entire thermal history can be represented as a sequence of three events with known durations: 1. The cooling of the formation during drilling, 0<t<t_(D), by circulating mud. 2. The temperature build-up around a wellbore after stoppage of mud circulation required for pulling out the drill string from the wellbore and lowering the wireline formation testing tool downhole. The duration of this phase, t₀, is usually substantially shorter than the drilling phase, i.e. t₀<t_(D). 3. The “production” phase which, herein, is used for the temperature data acquisition by the formation testing tool. The duration of this phase, t_(P), is usually substantially shorter than the two previous phases, i.e. t_(P)<t_(D)+t₀.

[0023] In the present embodiment, it is assumed that all physical parameters listed below, which characterize thermal and mechanical properties of the formation and the drilling mud, either are known or can be reasonably estimated:

[0024] Formation

[0025] Thermal conductivity=K

[0026] Specific heat of rock=c_(R)

[0027] Permeability=k

[0028] Porosity=Φ•

[0029] Rock density=ρ_(F)

[0030] Bulk modulus=B

[0031] Fluid viscosity=μ

[0032] Fluid density=ρ_(F)

[0033] Specific heat of fluid=c_(F)

[0034] Mud

[0035] Density=ρ_(M)

[0036] Specific heat=c_(M)

[0037] Modeling assumptions for the present embodiment are listed below. It will be understood that some of these can be varied.

[0038] The thermal history covering the formation cooling phase is represented by a single unknown parameter, which is the average wellbore temperature, T_(W), opposite the interval of “production” (testing). This parameter and the initial formation temperature, T₀, are the only unknowns that have to be determined from the temperature measurements data of (1).

[0039] The heat exchange between the fluid and the formation is instantaneous and therefore they always have the same temperatures. This assumption may not be valid in the wellbore neighborhood where flow velocities are high.

[0040] The viscosity contrast between mud filtrate and virgin formation fluid is neglected.

[0041] The Darcy law for a homogeneous fluid governs the flow in the formation. An extension of this assumption could be the inclusion of the inertial effects of fluid flow near a wellbore.

[0042] The convective heat transport in the formation induced by the mud filtrate invasion is neglected. This assumption may be inadequate in a case of poor mudcake quality and deep invasion.

[0043] The effect of fluid/rock compressibility on the heat transfer in the formation is neglected.

[0044] The thermal conductivity of formation, as well as the densities and heat capacities of fluid, rock and mud, are constant.

[0045] Geometry simplification: the 3D flow in the formation induced by the fluid production through the probe is replaced by the axi-symmetrical flow to a small wellbore interval of height equal to wellbore diameter. This assumption has previously been used interpreting formation testing measurements.

[0046] The heat transfer model is described by an equation of heat conduction during formation cooling while drilling and temperature build-up after stoppage of circulation and by the convection-conduction equation during “production”. Both equations can be represented in a single form $\begin{matrix} {{{{c\quad \rho \frac{\partial T}{\partial t}} + {{div}\left( {q_{T} + q_{C}} \right)}} = 0},{q_{T} = {{- K}{\nabla T}}},{q_{C} = {c_{F}\rho_{F}T_{V}}}} & (2) \end{matrix}$

[0047] where T is the temperature, v is the fluid flow velocity in the formation, q_(T) is the conductive heat flux, and q_(C) is the convective heat flux. The formation specific heat, c, and its density, ρ, can be expressed through the rock and fluid properties

c=φc _(F)+(1−φ)c _(R), ρ=φρ_(F)+(1−φ)ρ

  (3)

[0048] During cooling and build-up, the flow velocity is equal to zero and Eq. (2) become a classical heat conduction equation $\begin{matrix} {{\frac{\partial T}{\partial t} = {\alpha {\nabla^{2}T}}},{\alpha = \frac{K}{c\quad \rho}}} & (4) \end{matrix}$

[0049] where α is the thermal diffusivity and

Δ^(a)T

[0050] is the Laplace operator. The Darcy law and the continuity equation govern the fluid flow in the formation $\begin{matrix} {v = {{- \frac{k}{\mu}}{\nabla p}}} & (5) \\ {\frac{\partial p}{\partial t} = {\frac{B}{\varphi\mu}{{div}\left( {k{\nabla p}} \right)}}} & (6) \end{matrix}$

[0051] where p is the pressure and k is the permeability tensor.

[0052] The geometry and boundary conditions are treated as follows. The simulation domain is chosen as shown in FIG. 2 in the cylindrical coordinates (r,z) with the z-axis directed vertically along the wellbore. The probe is replaced by the small producing interval, |z|≦r_(W). This makes the whole problem axi-symmetrical if the wellbore is vertical and the permeability anisotropy is characterized by the ratio k_(H)/k_(V) only, where k_(H) is the horizontal permeability and k_(H) is the vertical permeability.

[0053] In this case, the middle cross-section of the producing interval, z=0, represents the plane of symmetry and the simulation domain is a rectangle adjacent to the borehole and an upper half of the producing interval. Its far field boundaries, r=r_(e) and z=z_(e), are assumed to be far enough from the producing interval in order to represent adequately the boundary conditions at infinity in numerical simulation:•

[0054] Constant pressure at both far field boundaries;•

[0055] The temperature is equal to the initial formation temperature, T₀, at r=r_(e), |z|<z_(e);•

[0056] Zero heat flux through the boundary z=z_(e), r_(W)<r<r_(e).

[0057] The borehole wall outside of the producing interval is assumed to be sealed by the filter cake and is always maintained under zero-flux condition. It is assumed that the producing interval is also sealed during formation cooling and temperature build-up after stoppage of circulation. It is also assumed that, during production phase, the fluid flux is distributed uniformly over the surface of the producing interval. Since the fluid production rate, q₀, is known, the flow velocity through the producing interval is represented by its radial component $\begin{matrix} {{\upsilon_{r} = \frac{q_{o}}{4\pi \quad r_{W}^{2}}},{r = r_{W}},{{z} < r_{W}}} & (7) \end{matrix}$

[0058] The boundary conditions for the temperature at the producing interval and the sealed wellbore will vary with time. They are given below for all three phases of thermal history.

[0059] Cooling phase (0<t<t_(D)):

T=T _(W), r=r_(W), |z|<z,  (8)

[0060] Build-up phase (t_(D)<t<t₁=t_(D+)t₀) $\begin{matrix} {{\left. {\int_{t_{D}}^{t}{2\pi \quad r_{W}K\frac{\partial T}{\partial r}}} \middle| {}_{r = r_{w}}\quad {t} \right. = {\pi \quad r_{W}^{2}c_{M}{\rho_{M}\left( {T - T_{W}} \right)}}},{r = r_{W}},{{z} < z_{e}}} & (9) \end{matrix}$

[0061] Production phase (t₁<t<t₂=t₁₊t_(p))

[0062] Producing interval(r=r_(W), |z|<r_(W))

qr=0  (10)

[0063] Sealed wellbore(r=r_(W), |z|<z_(e)): $\begin{matrix} {\left. {\int_{t_{D}}^{t}{2\pi \quad r_{W}K\frac{\partial T}{\partial r}}} \middle| {}_{r = r_{w}}{t} \right. = {\pi \quad r_{W}^{2}c_{M}{\rho_{M}\left( {T - T_{W}} \right)}}} & (11) \end{matrix}$

[0064] The boundary conditions (9) and (11) describe the heat exchange between the formation and the stagnant mud inside the wellbore, i.e. the mud heating during temperature build-up around the wellbore after stoppage of mud circulation.

[0065] The condition (10) at the producing interval represents the situation when the total heat flux from the boundary is equal to the convective flux. This is a conventional boundary condition at boundaries with non-zero fluid flux when the convection is a predominant mechanism of heat transport. This is the case for the present problem.

[0066] The problem formulated in the present embodiment involves two unknown parameters: the initial formation temperature, T₀, and the average wellbore temperature during drilling, T_(W), representing the cooling history. Since the problem is linear with respect to the temperature, T, both unknowns, T₀ and T_(W), can be 0 eliminated from the formulation using linear temperature transformation. This can be achieved by introducing the dimensionless temperature $\begin{matrix} {\Theta = \frac{T - T_{W}}{T_{0} - T_{W}}} & (12) \end{matrix}$

[0067] It is also convenient to normalize other variables as follows $\begin{matrix} {{X = \frac{r}{r_{W}}},{Z = \frac{z}{r_{W}}},{\tau = \frac{\alpha \quad t}{r_{W}^{2}}},{P = \frac{P}{P_{0}}},{V = \frac{v}{\upsilon_{0}}}} & (13) \end{matrix}$

[0068] where X and Z are the dimensionless coordinates, τ is the dimensionless time, whereas P and V are the dimensionless pressure and velocity respectively. The pressure scale, p₀, will be specified subsequently.

[0069] The thermal diffusivity equation (4) describing formation cooling temperature build-up does not depend on the axial coordinate Zand therefore can be presented as $\begin{matrix} {\frac{\partial\Theta}{\partial\tau} = {\frac{1}{X}\frac{\partial}{\partial X}\left( {X\frac{\partial\Theta}{\partial X}} \right)}} & (14) \end{matrix}$

[0070] It has to be solved with the initial condition

θ=1, r=0  (15)

[0071] and the boundary condition at the wellbore for the cooling phase

θ=0, X=1, 0

[0072] and for the build-up phase $\begin{matrix} {{\frac{\partial\Theta}{\partial\tau} = {\frac{2}{\beta_{M}}\frac{\partial\Theta}{\partial X}}},{X = 1},{\tau_{D} < \tau < \tau_{1}}} & (17) \end{matrix}$

[0073] Here, three dimensionless parameters are involved $\begin{matrix} {{\tau_{D} = \frac{\alpha \quad t_{D}}{\gamma_{w}^{2}}},{\tau_{1} = \frac{\alpha \quad t_{1}}{\gamma_{w}^{2}}},{\beta_{M} = \frac{c_{M}\rho_{N}}{c\quad \rho}}} & (18) \end{matrix}$

[0074] The two times, T_(D) and T₁, that represent the operation schedule and therefore can vary significantly, and the ratio of heat capacities of mud and rock is β_(M), which may change only slightly in different testing environments (well locations, depths).

[0075] The dimensionless axi-symmetrical convection-conduction equation (2) is $\begin{matrix} {{{\frac{\partial\Theta}{\partial\tau} + {\gamma {\nabla_{xx}{\cdot \left( {\Theta\nabla} \right)}}}} = {\nabla_{xx}^{2}\Theta}},{\gamma = \frac{\beta \quad r_{w}\upsilon_{o}}{\alpha}},{\omega \sqrt{\frac{k_{H}}{k_{v}}}}} & (19) \end{matrix}$

[0076] where, if the velocity field is stationary, $\begin{matrix} \begin{matrix} {{{\nabla_{xx}^{2}T} = {{\frac{1}{X}\frac{\partial}{\partial X}\left( {X\frac{\partial\Theta}{\partial X}} \right)} + \frac{\partial^{2}\Theta}{\partial Z^{2}}}},} \\ {{\nabla_{xx}{\cdot \left( {\Theta \quad V} \right)}} = {{{- \frac{1}{X}}\frac{\partial}{\partial X}\left( {X\quad \Theta \frac{\partial P}{\partial X}} \right)} - {\frac{\partial}{\partial Z}\left( {\frac{\Theta}{\omega^{2}}\frac{\partial P}{\partial Z}} \right)}}} \end{matrix} & (20) \end{matrix}$

[0077] It involves, together with the permeability anisotropy ratio ω, an additional dimensionless parameter, γ, which is usually of the order of 10. This confirms the above conclusion about predominance of the convective heat transport over the conduction.

[0078] The boundary conditions for the dimensionless temperature during production phase (τ>τ₁) are $\begin{matrix} {{\frac{\partial\Theta}{\partial X} = 0},{X = 1},{0 < Z < 1}} & (21) \\ {{\frac{\partial\Theta}{\partial\tau} = {\frac{2}{\beta_{M}}\frac{\partial\Theta}{\partial X}}},{X = 1},{1 < Z < Z_{e}}} & (22) \\ {{\frac{\partial\Theta}{\partial Z} = 0},{X = X_{e}},{Z = Z_{e}}} & (23) \end{matrix}$

 θ=1, X=X_(e), 0<Z<Z_(e)  (24)

[0079] where X_(e)=r_(e)/r_(W), Z_(e)=z_(e)/r_(W) are the dimensionless coordinates of the far field boundaries.

[0080] The determination of the velocity, V, which is involved in Eq. (19), requires solving the following boundary value problem for the dimensionless pressure $\begin{matrix} {{\frac{1}{X}\frac{\partial}{\partial X}\left( {X\frac{\partial P}{\partial X}} \right)} + {\omega^{- 2}\frac{\partial^{2}P}{\partial Z^{2}}} - 0} & (25) \\ {{\frac{\partial P}{\partial X} = {- 1}},{X = 1},{0 < Z < 1}} & (26) \\ {{\frac{\partial P}{\partial X} = 0},{X = 1},{1 < Z < Z_{e}}} & (27) \end{matrix}$

 P=P _(e), 1<X<X_(e), Z=Z_(e); X=X_(e), 1<Z<Z_(e)  (28)

[0081] where p_(e)=p_(e)/p₀ and the boundary condition (26) is obtained by choosing the characteristic pressure as

p ₀=μr

w

k

  (29)

[0082] It can be noted that the far field pressure P_(e) does not affect the solution of convection-conduction equation and can be chosen arbitrary.

[0083] Thus, the dimensionless formulation of the forward problem involves five parameters only

τ_(D), τ₁, γ, ω, β_(M)  (30)

[0084] The additional scales introduced for the purpose of numerical modeling only, which are associated with the far field boundaries, obviously, can be ignored. The first two parameters (τ_(D) and τ₁) represent the operation schedule and the three others (γ, ω and β_(M)) the physical properties of the formation and the mud.

[0085] If this problem is solved, the temperature of produced fluid can be found by the temperature integration over the surface of the producing interval. This gives, for the dimensionless temperature, the expression $\begin{matrix} {{\Theta_{L}(\tau)} = {\int_{0}^{1}{\Theta\left( {1,Z,{\tau {Z}}} \right.}}} & (31) \\ {where} & \quad \\ {{{\Theta_{L}(\tau)} = \frac{{T_{L}(t)} - T_{W}}{T_{0} - T_{w}}},{{T_{L}(t)} = {\frac{1}{\gamma_{w}}{\int_{0}^{r_{w}}{{T\left( {\gamma_{w},z,t} \right)}{z}}}}}} & (32) \end{matrix}$

[0086] An approach of this embodiment of the invention involves solving the forward problem formulated above and inverting the solution with respect to the unknown parameters, T₀ and T_(W). The inversion technique of this embodiment does not involve any history matching procedures and is based on the linearity of the forward problem and the dimensional analysis only.

[0087] If all five parameters (30) are known or reasonably estimated, the inverse problem involves the determination of the two unknown temperatures, i.e. the initial formation temperature, T₀, and the average mud temperature inside the wellbore during drilling, T_(W). These parameters have to be found by the inversion of the fluid temperature data, {T_(L)(t₁)}, obtained in a flowline during fluid production.

[0088] The inversion procedure is based on the linear relationship

T _(L) =T _(W)+θ_(L)(T ₀ −T _(W))  (33)

[0089] between the temperature measured in the flowline, T_(L)(t), and the dimensionless temperature, θ_(L)(τ), which has to be obtained by solving a forward problem. It involves the following steps:

[0090] 1. The sequence of the dimensionless times τ_(i)=αt_(i)/r_(W) ² corresponding to the iw temperature measurement data {T_(L)(t_(i))} is found.

[0091] 2. Using solution of the forward problem θ_(L)(τ), the dimensionless temperatures {θ_(L)(τ_(i))}are calculated.

[0092] 3. Eliminating the times t_(i)=r_(W) ²τ_(i)/α and T_(i) between arrays {T_(L)(t_(i))} and {θ_(L)(τ_(i))}, the measured temperature T_(L) is plotted versus the simulated dimensionless temperature θ_(L) as shown in FIG. 3.

[0093] 4. A straight line is fitted to the plotted data T_(L)=F(θ_(L)) as shown in FIG. 3, and its intercept points with axes corresponding to θ_(L)=1 and θ_(L)=0 are found. These interception points determine the initial formation temperature, T₀=F(1), and the average wellbore temperature during drilling, T_(W)=F(0).

[0094] One can expect that the measured temperatures T_(L) (t_(i)) will fill only a small fraction of the entire temperature range T_(w)<T<T₀ and therefore the duration of temperature measurement phase as well as the production rate may affect the resolution of inversion. It will be evident that the wider the range of measured temperature, the more accurate the fitting and, therefore, the determination of the formation temperature, T₀, will be more accurate. Using more comprehensive models, that take into account the thermal capacity of the wireline tool and the heat exchange rate, may improve the amount and quality of data involved in the inversion procedure.

[0095]FIG. 4 shows the borehole 32 that has been drilled, in known manner, with drilling equipment, and using drilling fluid or mud that has resulted in a mudcake represented at 35. As previously noted, for each depth region of interest, the time of mud circulation and the time since cessation of mud circulation, is kept track of, in known manner, for example by using a clock or other timing means, processor, and/or recorder. FIG. 4 shows a representative embodiment of a formation tester apparatus or device 100 which can be used in practicing an embodiment of the invention. The apparatus 100 is suspended in the borehole 32 on an armored multiconductor cable 33, the length of which substantially determines the depth of the device 100. Known depth gauge apparatus (not shown) is provided to measure cable displacement over a sheave wheel (not shown) and thus the depth of logging device 100 in the borehole 32. Circuitry 51, shown at the surface although portions thereof may typically be downhole, represents control and communication circuitry for the investigating apparatus. Also shown at the surface are processor 50 and recorder 90. These may all generally be of known type, and include appropriate clock or other timing means.

[0096] The tool 100 has an elongated body 105 which encloses the downhole portion of the apparatus, controls, chambers, measurement means, etc. One or more arms 123 can be mounted on pistons 125 which extend, e.g. under control from the surface, to set the tool. The device includes one or more probe modules, each of which includes a probe assembly 210 which is movable with a probe actuator (not separately shown) and includes a probe (not separately shown) that is outwardly displaced into contact with the borehole wall, piercing the mudcake and communicating with the formations. The equipment and methods for taking pressure measurements and doing formation fluid sampling are well known in the art, and the logging device 100 is provided with these known capabilities. Reference can be made, for example, to U.S. Pat. Nos. 3,934,468 and 4,860,581, which describe early versions of devices of this general type.

[0097] Modern commercially available services utilizing, for example, a modular formation dynamics tester (“MDT”—trademark of Schlumberger), can provide a variety of measurements and samples, as the tool is modularized and can be configured in a number of ways. Examples of some of the modules employed in this type of tool, are as follows: An electric power module is generally provided. It does not have a flowline or hydraulic bus, and will typically be the first (top) module in the string. A hydraulic power module provides hydraulic power to all modules that may require same, and such power can be propagated via a hydraulic bus. Probe modules, which can be single or plural probes, includes pistons for causing engagement of probe(s) for fluid communication with the formations. Sample modules contain sample chambers for collecting samples of formation fluids, and can be directly connected with sampling points or connected via a flowline. A pumpout module can be used for purging unwanted fluids. An analyzer module uses optical analysis to identify certain characteristics of fluids. A temperature measurement capability is also provided. A packer module includes inflatable packer elements which can seal the borehole circumference over the length of the packer elements. Using the foregoing and other types of modules, the tool can be configured to perform various types of functions. The present invention has application to tool configurations which draw formation fluid into the tool, and return the fluid into borehole.

[0098] Referring to FIG. 5, there is shown a diagram of the steps of a process for determining virgin formation temperature at depth regions of interest. The steps, or at least some of them, can be implemented by one or more processors, at and/or away from the wellsite. The block 505 represents keeping track of the duration of drilling fluid circulation time, denoted as t_(D) above. As previously indicated, this can be conventionally performed at the wellsite. Similarly, the block 510 represents keeping track of the time after cessation of drilling fluid circulation (the temperature build-up time, t_(o), as above), which can also be conventionally performed at the wellsite. The block 520 represents positioning the formation testing device at a selected depth region of interest. Then, at the selected depth region, fluid is caused to flow (block 530) from the formations into the flowline of the formation testing device. Typically, and as is known in the art, substantial fluid will pass through the flow line before relatively uncontaminated fluid is in the line. As represented by the block 535, temperature data is collected as a function of time. This can be done, for example, continuously or periodically, and by analog or digital means. As noted above, it is known in the art that formation testing equipment can be equipped with temperature sensing capability. In the present embodiment, digital temperature measurements, as a function of time, are available for processing.

[0099] The block 540 represents the inputting of known or estimated parameters for the heat exchange model. In the present embodiment, these are as listed above, although it will be understood that variations on the model and the parameters can be made, consistent with the spirit and scope of the claimed invention. The described inversion procedure is then implemented (block 550) to obtain the trend of temperature evolution at the depth region being processed, and to determine virgin formation temperature by extrapolation from the trend.

[0100] Refer, momentarily to FIG. 6, which is a flow diagram of the steps represented by the block 550 of FIG. 5. The block 551 represents obtaining the dimensionless times τ_(Ti). This is done using the expression for τ in equations (13). Then, as represented by the block 552, using solution to the forward problem θ_(L)(τ), the dimensionless temperatures {θ_(L)(τ_(i))} are calculated. Then, measured temperature versus simulated dimensionless temperature θ_(L) is plotted (block 553), as in FIG. 3. Reference can also be made to the FIG. 7 diagram, which shows how the diagram will look for an actual case. Interpolation can then be utilized (block 554) to obtain virgin formation temperature T₀ and average wellbore temperature T_(W). In the example of FIG. 7, these are T_(o)=177° F. and T_(W)=189.7 degrees. It will be understood that the plotting and interpolation can be performed graphically or can be done using software widely available for this purpose.

[0101] Referring again to FIG. 5, the block 560 represents processing further depth regions in similar manner, and the block 570 represents producing logs of virgin formation temperature T_(o) and average borehole Temperature T_(W) as a function of depth level, using the obtained temperature determinations.

[0102] The invention has been described with reference to a particular preferred embodiment, but variations within the spirit and scope of the invention will occur to those skilled in the art. For example, it will be understood that other devices can be used for implementing the obtaining and temperature measuring on the fluid from the formations. 

1. A method for determining virgin formation temperature of earth formations surrounding a borehole that is drilled using drilling fluid, comprising the steps of: keeping track of the time duration of drilling fluid circulation at borehole depth regions of interest; keeping track of the time after cessation of drilling fluid circulation at said borehole depth regions of interest; at a particular borehole depth region of interest, causing flow of fluid from the formations into a device in the borehole, and measuring the temperature of said fluid as a function of time with respect to initiation of said fluid flow; modeling the thermal history of formations surrounding the particular borehole depth region, said modeling including a cooling phase during drilling fluid circulation, a temperature build-up phase after cessation of drilling fluid circulation, and a formation fluid flow phase after initiation of fluid flow; using said model and said temperature measurements, determining a trend of temperature evolution at said particular depth region; and determining the virgin formation temperature by extrapolation from said trend.
 2. The method as defined by claim 1, wherein said step of causing flow of fluid from the formations into a device in the borehole and measuring the temperature of said fluid as a function of time comprises positioning a formation testing device at the particular depth region of interest, drawing fluid from the formations into said device, and measuring, in said device, the temperature of said fluid.
 3. The method as defined by claim 2, further comprising repeating the steps of the method for determining virgin formation temperature determination for other depth regions of interest.
 4. The method as defined by claim 3, further comprising producing a log of the determined virgin formation temperatures as a function of depth.
 5. The method as defined by claim 1, wherein said step of modeling the thermal history of said formations comprises formulating model equations that include a function of the unknown virgin temperature, T_(o), and a function of the unknown average borehole temperature during frilling fluid circulation, (T_(W)).
 6. The method as defined by claim 5, further comprising repeating the steps of the method for determining T_(o) and for determining T_(W).
 7. The method as defined by claim 6, further comprising producing logs of T_(o) and T_(W) as a function of depth.
 8. The method as defined by claim 1, wherein said step of determining a trend of temperature evolution at a particular depth region includes performing an inversion to obtain a trend of measured temperature versus dimensionless temperature.
 9. The method as defined by claim 1, wherein said model includes, during said formation fluid flow phase, a representation of heat conduction and heat convention during fluid flow.
 10. The method as defined by claim 1, wherein said step of modeling the thermal history includes inputting to the model, the density and specific heat of the drilling fluid, and the following physical parameters of the formations: thermal conductivity, specific heat of rock, specific heat of fluid permeability, porosity, rock density, fluid density, bulk modulus, and fluid viscosity.
 11. The method as defined by claim 9, wherein said step of modeling the thermal history includes inputting to the model, the density and specific heat of the drilling fluid, and the following physical parameters of the formations: thermal conductivity, specific heat of rock, specific heat of fluid permeability, porosity, rock density, fluid density, bulk modulus, and fluid viscosity.
 12. In a method for determining virgin formation temperature of earth formations surrounding a borehole that is drilled using drilling fluid, that includes the steps of: keeping track of the time duration of drilling fluid circulation at borehole depth regions of interest; keeping track of the time after cessation of drilling fluid circulation at said borehole depth regions of interest; and, at a particular borehole depth region of interest, causing flow of fluid from the formations into a device in the borehole, and measuring the temperature of said fluid as a function of time with respect to initiation of said fluid flow; the improvement comprising: modeling the thermal history of formations surrounding the particular borehole depth region, said modeling including a cooling phase during drilling fluid circulation, a temperature build-up phase after cessation of drilling fluid circulation, and a formation fluid flow phase after initiation of fluid flow; using said model and said temperature measurements, determining a trend of temperature evolution at said particular depth region; and determining the virgin formation temperature by extrapolation from said trend.
 13. The method as defined by claim 12, further comprising repeating the steps of the method for determining virgin formation temperature determination for other depth regions of interest.
 14. The method as defined by claim 13, further comprising producing a log of the determined virgin formation temperatures as a function of depth.
 15. The method as defined by claim 12, wherein said step of modeling the thermal history of said formations comprises formulating model equations that include a function of the unknown virgin temperature, T_(o), and a function of the unknown average borehole temperature during frilling fluid circulation, (T_(W)).
 16. The method as defined by claim 15, further comprising repeating the steps of the method for determining T_(o) and for determining T_(W).
 17. The method as defined by claim 16, further comprising producing logs of T_(o) and T_(W) as a function of depth.
 18. The method as defined by claim 12, wherein said step of determining a trend of temperature evolution at a particular depth region includes performing an inversion to obtain a trend of measured temperature versus dimensionless temperature.
 19. The method as defined by claim 12, wherein said model includes, during said formation fluid flow phase, a representation of heat conduction and heat convention during fluid flow.
 20. The method as defined by claim 12, wherein said step of modeling the thermal history includes inputting to the model, the density and specific heat of the drilling fluid, and the following physical parameters of the formations: thermal conductivity, specific heat of rock, specific heat of fluid permeability, porosity, rock density, fluid density, bulk modulus, and fluid viscosity. 